package com.banshuibao.bsb_android;

import android.content.SharedPreferences;
import android.os.Bundle;

import com.banshuibao.bsb_android.activity.BaseActivity;
import com.banshuibao.bsb_android.util.IntentManager;


public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SharedPreferences sp = getSharedPreferences("guidePager", MODE_PRIVATE);
        boolean isShow = sp.getBoolean("isShow", false);
        if(isShow){
            //用户的角色（0 普通用户 1解税宝用户3 咨询师 4 专家）
            IntentManager.goUserHomeActivity(MainActivity.this);
        }else{
            IntentManager.goGuidPagerAcitivty(MainActivity.this);
        }
        finish();
    }
}